﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/Site.Master" AutoEventWireup="true" CodeBehind="de-nghi-sua-chua.aspx.cs" Inherits="VanTaiTMS.Page.DeNghiSuaChua" %>

<%@ Register Src="~/SubPage/uc-danh-muc-xe.ascx" TagPrefix="uc1" TagName="ucdanhmucxe" %>
<%@ Register Src="~/SubPage/Uc_VatTuSuaChua.ascx" TagPrefix="uc2" TagName="Uc_VatTuSuaChua" %>
<%@ Register Src="~/SubPage/Uc_KyHieuVatTuSuaChua.ascx" TagPrefix="uc3" TagName="Uc_KyHieuVatTuSuaChua" %>
<%@ Register Src="~/SubPage/uc_quocgia.ascx" TagPrefix="uc4" TagName="uc_quocgia" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <!---Check-all----->
    <script type="text/javascript">
        function checkAll() {
            $('.bordered tbody tr').each(function() {
                if ($('input#chkAll').is(":checked")) {
                    $('input#chkList').attr({ 'checked': 'checked' });
                    $('input#chkList').parent().parent().css({ 'background': 'rgb(208, 233, 198)' });
                } else {
                    $('input#chkList').attr({ 'checked': false });
                    $('input#chkList').parent().parent().css({ 'background': '' });
                }
            });
        }
    </script>
    <!-------End------->

    <!------Popup------>
    <script type="text/javascript">
        $(document).ready(function() {
            //setup new person dialog
            $('#denghisuachua').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function(event) { $(event.target).parent().css('position', 'fixed'); },
                open: function() {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            //setup new person dialog
            $('#ThemNhanhXe').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function (event) { $(event.target).parent().css('position', 'fixed'); },
                open: function () {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            //setup new person dialog
            $('#ThemNhanhLoaiVatTuThayThe').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function (event) { $(event.target).parent().css('position', 'fixed'); },
                open: function () {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            //setup new person dialog
            $('#ThemNhanhKyHieuLoaiVatTuThayThe').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function (event) { $(event.target).parent().css('position', 'fixed'); },
                open: function () {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            //setup new person dialog
            $('#ThemNhanhQuocGia').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function (event) { $(event.target).parent().css('position', 'fixed'); },
                open: function () {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function() {
            //setup new person dialog
            $('#duyetdenghisuachua').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function(event) { $(event.target).parent().css('position', 'fixed'); },
                open: function() {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function() {
            //setup new person dialog
            $('#ThemNhanhTinh').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function(event) { $(event.target).parent().css('position', 'fixed'); },
                open: function() {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function() {
            //setup new person dialog
            $('#thongbao').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "372px",
                position: ['center', 50],
                resizable: false,

                create: function(event) { $(event.target).parent().css('position', 'fixed'); },
                open: function() {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function() {
            //setup new person dialog
            $('#thongbaoxoa').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "372px",
                position: ['center', 50],
                resizable: false,

                create: function(event) { $(event.target).parent().css('position', 'fixed'); },
                open: function() {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>
    <!-------End------->
    <!---AutoComplete-->
    <script type="text/javascript">
        function pageLoad() {
            $(document).ready((function() {
                var availableTags1 = [<%= SuggestionList %>];

                $("#<%= txtSearch.ClientID %>").autocomplete({
                    source: availableTags1
                });
            }));

            $(function() {
                $(".textboxngaynhap").datepicker({
                    showOn: "button",
                    buttonImage: "../images/calendar.gif",
                    dateFormat: 'dd/mm/yy',
                    changeMonth: true,
                    changeYear: true,
                    buttonImageOnly: true
                }).val();
            });

            $(function($) {
                $(".textboxngaynhap").mask("99/99/9999"); //Kiem tra ngay nhap
                $("#phone").mask("(999) 999-9999"); //Kiem tra so dien thoai
                $("#tin").mask("99-9999999");
                $("#ssn").mask("999-99-9999");
            });

            //Check Row Hender Color
            $(document).ready(function() {
                $('.bordered tbody tr').click(function(event) {
                    if (event.target.type !== 'checkbox') {
                        $(':checkbox', this).trigger('click');
                    }
                });

                $("input[type='checkbox']").change(function() {
                    if ($(this).is(":checked")) {
                        $(this).closest('tr').css("background", "rgb(208, 233, 198)");
                    } else {
                        $(this).closest('tr').css("background", "");
                    }
                });
            });

            //FixTable
            $(document).ready(function () {
                var table = $('#testTable').DataTable({
                    "scrollX": "100%",
                    scrollCollapse: true,
                    paging: false,
                    searching: false,
                    "sDom": '<"top">rt<"bottom"flp><"clear">'

                });
                new $.fn.dataTable.FixedColumns(table, {
                    //"leftColumns": 4
                });
            });
        }
    </script>
    <!-------End------->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="upDatePanelAll" runat="server">
        <ContentTemplate>
            <div id="toolbar-1" class="yui3-toolbar">
                <asp:Panel id="panel1" runat="server" DefaultButton="cmdSerach">
                   <div class="div-search_A">
                       <asp:Button ID="cmdAddNew" CssClass="btn-add-new" runat="server" OnClick="cmdAddNew_Click" />
                       <asp:Button ID="cmdEdit" CssClass="btn-add-edit" runat="server" OnClick="cmdEdit_Click" />
                       <asp:Button ID="cmdDel" CssClass="btn-add-delete" OnClientClick="return confirmCheckIn(this);" runat="server" OnClick="cmdDel_Click" />
                    </div>

                   <div class="div-search-texbox">
                        <asp:TextBox ID="txtSearch" placeholder="Nhập vào từ khoá tìm kiếm..." CssClass="textbox_child" runat="server" OnTextChanged="txtSearch_TextChanged"></asp:TextBox>
                   </div>

                   <div class="div-search">
                        <asp:Button ID="cmdSerach" CssClass="btn-add-search" runat="server" OnClick="cmdSerach_Click" />
                        <asp:Button ID="cmdRefesh" CssClass="btn-add-refesh" runat="server" OnClick="cmdRefesh_Click" />
                        <asp:Button ID="cmdDuyet"  runat="server" CssClass="btn-add-review" Text="" OnClick="cmdDuyet_Click" />
                        <asp:ImageButton CssClass="btn-add-excel" ID="ImageButton1" ImageAlign="Middle"  OnClientClick=" tableToExcel('testTable', 'W3C Example Table') " Visible="false" ToolTip="Xuất ra File Excel" runat="server" />
                        <asp:Button ID="cmdExport" runat="server" CssClass="btn-add-excel"  Text="" OnClientClick=" tableToExcel('testTable', 'W3C Example Table')" ToolTip="Xuất ra File Excel"/>
                   </div>
                </asp:Panel>
            <div class="clr"></div>
            </div>

            <div id="toolbar-2" class="yui3-toolbar">
                <asp:Panel id="panel2" runat="server" DefaultButton="cmdFilter">
                    <div class="div-search-texbox-date-fillter">
                        <asp:TextBox ID="txtDateBeGin" placeholder="Từ ngày" CssClass="textboxngaynhap" Width="150px" runat="server"></asp:TextBox>
                        <asp:TextBox ID="txtDateEnd" placeholder="Đến ngày" CssClass="textboxngaynhap" Width="150px" runat="server"></asp:TextBox>
                    </div>

                    <div class="div-search_B">
                        <asp:Button ID="cmdFilter" CssClass="btn-add-fillter" runat="server" ToolTip="Lọc" OnClick="cmdFilter_Click" />
                    </div>

                    <div class="div-search-select">
                        <asp:DropDownList ID="drFilterSoXe" CssClass="select-drop-child" runat="server" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="drFilterSoXe_SelectedIndexChanged"></asp:DropDownList>
                    </div>
                </asp:Panel>
            <div class="clr"></div>
            </div>
            <%= StrAlert %>
            <!-----------Hiễn-Thị-Dữ-Liệu------------>
            <table class="bordered" id="testTable">
                <thead>
                    <tr>
                        <th width="5%">STT</th>
                        <th width="5%">
                            <input type="checkbox" onclick=" checkAll('chkList'); " id="chkAll">
                        </th>
                        <th width="7%">Chứng từ đề nghị</th>
                        <th width="7%">Ngày đề nghị</th>
                        <th width="6%">Số Xe</th>
                        <th width="10%">Tài Xế</th>
                        <th width="9%">Loại Vật Tư/Thay Thế</th>
                        <th width="9%">Ký Hiệu Loại Vật Tư</th>
                        <th width="6%">Quốc Gia</th>
                        <th width="5%">Số lượng</th>
                        <th width="7%">Đơn Giá</th>
                        <th width="8%">Chi Phí</th>
                        <th width="7%">Nhân viên duyệt</th>
                        <th width="7%">Lãnh đạo duyệt</th>
                    </tr>
                </thead>

                <tbody>
                    <asp:ListView ID="ListViewAll" runat="server" ItemPlaceholderID="lstViewAll" DataKeyNames="Repair_Suggestion_ID" OnItemCommand="ListViewAll_ItemCommand" OnItemDataBound="ListViewAll_ItemDataBound">
                        <ItemTemplate>
                            <tr>
                                <td style="text-align: center">
                                    <asp:Label ID="lb_lst_ID" runat="server" Text='<%# Eval("Repair_Suggestion_ID") %>'></asp:Label>
                                </td>

                                <td style="text-align: center">
                                    <asp:CheckBox ID="chkList" ClientIDMode="Static" runat="server" />
                                </td>

                                <td style="text-align: center">
                                    <asp:Label ID="lbDVTIntoMaVatTuCNBD" runat="server" Text='<%# Eval("Repair_Suggestion_Voucher") %>'></asp:Label>
                                    <input type="hidden" id="hiddenId" value='<%# Eval("Repair_Suggestion_ID") %>' runat="server" name="hiddenId" />
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="linkTenDeNghiSuaChua" CommandName="Accept" runat="server"><%# Eval("Repair_Suggestion_Date", "{0:dd/MM/yyyy}") %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="linkTenDeNghiSuaChuaE" CommandName="Accept" runat="server"><%# Eval("Vehicle_Number") %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="linkTenDeNghiSuaChuaC" CommandName="Accept" runat="server"><%# Eval("FullNameMem") %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="LinkButton1" CommandName="Accept" runat="server"><%# Eval("RepairMaterials_Name").ToString().Substring(0, Math.Min(Eval("RepairMaterials_Name").ToString().Length, 10)) + "..." %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="LinkButton2" CommandName="Accept" runat="server"><%# Eval("SymbolRepairMaterials_Name").ToString().Substring(0, Math.Min(Eval("SymbolRepairMaterials_Name").ToString().Length, 10)) + "..." %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="LinkButton3" CommandName="Accept" runat="server"><%# Eval("National_Name") %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="LinkButton5" CommandName="Accept" runat="server"><%# Eval("Repair_Suggestion_Quantity", "{0:0}") %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="LinkButton6" CommandName="Accept" runat="server"><%# Eval("Repair_Suggestion_Rate", "{0:0,00 đ}") %></asp:LinkButton>
                                </td>

                                <td style="text-align: center">
                                    <asp:LinkButton ID="LinkButton7" CommandName="Accept" runat="server"><%# Eval("Repair_Suggestion_Cost", "{0:0,00 đ}") %></asp:LinkButton>
                                </td>

                                <td>
                                    <asp:Label ID="lbNote" runat="server" Visible="False" Text='<%# Eval("Repair_Suggestion_Status") %>'></asp:Label>
                                    <div id="dvip2" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 0 %>'>
                                        Chưa duyệt
                                    </div>
                                    <div id="dvip1" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 1 %>'>
                                        Đã duyệt
                                    </div>
                                    <div id="Div1" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 2 %>'>
                                        Đã duyệt
                                    </div>
                                    <div id="Div2" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 3 %>'>
                                        Đã duyệt
                                    </div>
                                    
                                    <div id="Div3" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 4 %>'>
                                        Đã hủy
                                    </div>
                                </td>
                                
                                <td>
                                    <asp:Label ID="Label1" runat="server" Visible="False" Text='<%# Eval("Repair_Suggestion_Status") %>'></asp:Label>
                                    <div id="dvip3" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 1 %>'>
                                        Chưa duyệt
                                    </div>
                                    <div id="dvip4" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 2 %>'>
                                        Đang chờ duyệt
                                    </div>
                                    <div id="dvip5" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 3 %>'>
                                        Đã duyệt
                                    </div>
                                    <div id="dvip6" runat="server" visible='<%# Convert.ToInt32(Eval("Repair_Suggestion_Status")) == 4 %>'>
                                        Đã huỷ
                                    </div>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <LayoutTemplate>
                            <asp:PlaceHolder runat="server" ID="lstViewAll"></asp:PlaceHolder>
                        </LayoutTemplate>
                    </asp:ListView>
                </tbody>
            </table>
            <!--------------Kêt-thúc----------------->

            <!-------------Phân-trang---------------->
            <table class="bordered">
                <thead>
                    <tr>
                        <th class="pager">
                            <asp:DataPager ID="DataPagerListAll" runat="server"
                                           OnPreRender="DataPagerListAll_PreRender" PagedControlID="ListViewAll">
                                <Fields>
                                    <asp:NextPreviousPagerField FirstPageText="&lt;&lt;" PreviousPageText="&lt;"
                                                                ShowFirstPageButton="True" ShowNextPageButton="False" />
                                    <asp:NumericPagerField />
                                    <asp:NextPreviousPagerField LastPageText="&gt;&gt;" NextPageText="&gt;"
                                                                ShowLastPageButton="True" ShowPreviousPageButton="False" />
                                </Fields>
                            </asp:DataPager>
                        </th>
                    </tr>
                </thead>
            </table>
            <!--------------Kêt-thúc----------------->
        </ContentTemplate>
    </asp:UpdatePanel>
    <!-------------Edit-Dữ-Liệu-------------->
    <div id="denghisuachua" title="Cập nhật danh mục Đề Nghị Sữa Chữa">
        <asp:UpdatePanel ID="upNewUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
            <ContentTemplate>
                <div class="toolbar-ui-all-big">
                    <asp:ImageButton CssClass="button-all" ID="imgSave" ImageAlign="Middle"
                                     ImageUrl="~/Icon/save.png" runat="server"
                                     OnClick="imgSave_Click" />

                    <asp:ImageButton CssClass="button-all" ID="imgrefesh" ImageAlign="Middle"
                                     ImageUrl="~/Icon/refesh-ui.png" ToolTip="Làm tươi" runat="server"
                                     OnClick="imgrefesh_Click" />
                </div>
                <div class="clr"></div>
                <div class="ui-main">
                    <div style="display: none">
                        <asp:Label ID="lbID" runat="server"></asp:Label>
                    </div>
                    <div class="ui-box-text-box">
                        <label class="label">Chứng Từ Đề Nghị <span style="color: Red">(*)</span></label>
                        <asp:TextBox ID="txtChungTu" CssClass="textbox" runat="server"></asp:TextBox>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Số xe <span style="color: Red">(*)</span><asp:LinkButton ID="LinkThemNhanhSoXe" runat="server" OnClick="LinkThemNhanhSoXe_Click">[...]</asp:LinkButton></label>
                        <asp:DropDownList ID="drSoXe" AutoPostBack="True" AppendDataBoundItems="True" CssClass="textbox" runat="server" OnSelectedIndexChanged="drSoXe_SelectedIndexChanged"></asp:DropDownList>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Tài Xế </label>
                        <asp:DropDownList ID="drTaiXe" Enabled="False" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Nhóm Xe </label>
                        <asp:DropDownList ID="drNhomXe" Enabled="False" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>

                    <div class="clr"></div>

                    <div class="ui-box-text-box">
                        <label class="label">Ngày Đề Nghị<span style="color: Red">(*)</span></label>
                        <asp:TextBox ID="txtNgay" CssClass="textboxngaynhap" runat="server"></asp:TextBox>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Loại Vật Tư/Thay Thế <span style="color: Red">(*)</span><asp:LinkButton ID="LinkThemNhanhLoaiVatTuThayThe" runat="server" OnClick="LinkThemNhanhLoaiVatTuThayThe_Click">[...]</asp:LinkButton></label>
                        <asp:DropDownList ID="drLoaiVatTuThayThe" AutoPostBack="True" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Ký Hiệu Loại Vật Tư <span style="color: Red">(*)</span><asp:LinkButton ID="LinkThemNhanhKyHieuLoaiVatTuThayThe" runat="server" OnClick="LinkThemNhanhKyHieuLoaiVatTuThayThe_Click">[...]</asp:LinkButton></label>
                        <asp:DropDownList ID="drKyHieuLoaiVatTu" AutoPostBack="True" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Quốc Gia <span style="color: Red">(*)</span><asp:LinkButton ID="LinkThemNhanhQuocGia" runat="server" OnClick="LinkThemNhanhQuocGia_Click">[...]</asp:LinkButton></label>
                        <asp:DropDownList ID="drQuocGia" AutoPostBack="True" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>

                    <div class="clr"></div>

                    <div class="ui-box-text-box">
                        <label class="label">Số Lượng <span style="color: Red">(*)</span></label>
                        <asp:TextBox ID="txtSoLuong" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Đơn Giá <span style="color: Red">(*)</span></label>
                        <asp:TextBox ID="txtDonGia" CssClass="textbox" onkeyup=" this.value=FormatNumber(this.value);" runat="server"></asp:TextBox>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Chi Phí </label>
                        <asp:TextBox ID="txtChiPhi" Enabled="False" CssClass="textbox" runat="server"></asp:TextBox>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Ghi chú</label>
                        <asp:TextBox ID="txtGhiChu" TextMode="MultiLine" CssClass="textbox-muiti" runat="server"></asp:TextBox>
                    </div>
                    <div class="clr"></div>
                    <div class="ui-box-text-box">
                        <label class="label">Cấp độ duyệt cấp 1 <span style="color: Red">(*)</span></label>
                        <asp:DropDownList ID="drDuyet1" AutoPostBack="True" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>

                    <div class="ui-box-text-box">
                        <label class="label">Cấp độ duyệt cấp 2 <span style="color: Red">(*)</span></label>
                        <asp:DropDownList ID="drDuyet2" AutoPostBack="True" AppendDataBoundItems="True" CssClass="textbox" runat="server"></asp:DropDownList>
                    </div>
                    <div class="clr"></div>
                </div>
                <div class="clr"></div>
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upNewUpdatePanel">
                    <ProgressTemplate>
                        <img alt='loadding' class="loading" src="../images/loading-fb.gif" /><br />
                        <div class="loading-label-right">
                            Đang xử lý dữ liệu...
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="imgSave" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <!--------------Kêt-thúc----------------->
    <!-------------Duyệt-Dữ-Liệu------------->
    <div id="duyetdenghisuachua" title="Duyệt đề nghị sữa chữa">
        <asp:UpdatePanel ID="upDatePanelDuyetLenh" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
            <ContentTemplate>
                <div class="toolbar-ui-all-big">
                    <asp:ImageButton CssClass="button-all" ID="ImgXetDuyet" ImageAlign="Middle"
                                     ImageUrl="~/Icon/duyet.png" runat="server"
                                     OnClick="ImgXetDuyet_Click" />

                    <asp:ImageButton CssClass="button-all" ID="ImgRefeshDuyet" ImageAlign="Middle"
                                     ImageUrl="~/Icon/refesh-ui.png" ToolTip="Làm tươi" runat="server"
                                     OnClick="ImgRefeshDuyet_Click" />
                </div>
                <div class="clr"></div>
                <div class="ui-main">
                    <div style="display: none">
                        <asp:Label ID="lbIDDuyet" runat="server" Text=""></asp:Label>
                    </div>

                    <div style="display: none">
                        <asp:CheckBox ID="chkHide" runat="server" Checked='<%# Eval("Trạng Thái") %>' Enabled="false" />
                    </div>

                    <div class="ui-box-text-box-note-child">
                        <label class="label">Email người nhận <span style="color: Red">(*)</span></label>
                        <asp:TextBox ID="txtEmailResive" Enabled="False" CssClass="textbox-muiti-note_Child" runat="server"></asp:TextBox>
                    </div>

                    <div class="clr"></div>

                    <div class="ui-box-text-box-note-child">
                        <label class="label">Nội dung Email</label>
                        <asp:TextBox ID="txtContent" TextMode="MultiLine" CssClass="textbox-muiti-note_Child" runat="server"></asp:TextBox>
                    </div>

                    <div class="clr"></div>
                    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="upDatePanelDuyetLenh">
                        <ProgressTemplate>
                            <img alt="Loading..." src="../images/loading6.gif" /><br />
                            Đang xử lý dữ liệu
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <div class="clr"></div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="ImgXetDuyet" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <!--------------Kêt-thúc----------------->
    <div id="ThemNhanhXe" title="Thêm Nhanh Xe">
        <uc1:ucdanhmucxe runat="server" ID="ucdanhmucxe" />
    </div>
    <div id="ThemNhanhLoaiVatTuThayThe" title="Thêm Loại Vật Tư Thay Thế">
        <uc2:Uc_VatTuSuaChua runat="server" ID="Uc_VatTuSuaChua" />
    </div>
    <div id="ThemNhanhKyHieuLoaiVatTuThayThe" title="Thêm Nhanh Ký Hiệu Loại Vật Tư Thay Thế">
        <uc3:Uc_KyHieuVatTuSuaChua runat="server" id="Uc_KyHieuVatTuSuaChua" />
    </div>
    <div id="ThemNhanhQuocGia" title="Thêm Nhanh Quốc Gia">
        <uc4:uc_quocgia runat="server" id="uc_quocgia" />
    </div>
    <!-------------Thông-Bao-Xoá------------->
    <div id="thongbaoxoa" title="Thông Báo">
        <asp:UpdatePanel ID="upDatePanelThongBaoXoa" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
            <ContentTemplate>
                <div style="display: none">
                    <asp:Label ID="lbIDXoa" runat="server" Text=""></asp:Label>
                </div>
                <p>
                    <span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
                    <asp:Label ID="lbThongBaoXoa" CssClass="error-msg" runat="server" Text=""></asp:Label>
                </p>
                <hr />
                <div class="toolbar-ui-footer">
                    <asp:Button ID="cmdAgree" CssClass="btn btn-info" Height="29px" runat="server"
                                Text="Đồng ý" OnClick="cmdAgree_Click" />

                    <asp:Button ID="cmdClose" CssClass="btn btn-info" Height="29px" runat="server"
                                Text="Bỏ qua" OnClick="cmdClose_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <!--------------Kêt-thúc----------------->
    <!-------------Thông-Bao----------------->
    <div id="thongbao" title="Thông Báo">
        <asp:UpdatePanel ID="updatePanelThongBao" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
            <ContentTemplate>
                <p>
                    <span class="ui-icon ui-icon-circle-check" style="float: left; margin: 0 7px 50px 0;"></span>
                    <asp:Label ID="lbThongBaoLoi" CssClass="error-msg" runat="server" Text=""></asp:Label>
                </p>
                <hr />
                <div class="toolbar-ui-footer">
                    <asp:Button ID="cmdCloseThongBao" CssClass="btn btn-info" Height="29px" runat="server"
                                Text="Đóng lại" OnClick="cmdCloseThongBao_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <!--------------Kêt-thúc----------------->
</asp:Content>